
#ifndef __APR_INTERFACE_H
#define __APR_INTERFACE_H

#include <apr_general.h>
#include <apr_errno.h>

class APRInterface
{
   public:
      APRInterface();
      APRInterface(int *argc, const char *const **argv);
      ~APRInterface();
      void APRInit();
      static void Check_apr_status_t_For_Error(apr_status_t status, const char *fpretty, int line);
      int isinit;
      apr_pool_t *mp;
};

#ifdef __WIN32__
#define CheckAPRError(status) APRInterface::Check_apr_status_t_For_Error(status, __FILE__, __LINE__)
#else
#define CheckAPRError(status) APRInterface::Check_apr_status_t_For_Error(status, __PRETTY_FUNCTION__, __LINE__)
#endif

#endif
